package com.csdj.controller;

import com.csdj.service.IContactService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: organic-catering
 * @description:
 * @author: 大臣
 * @create: 2024-12-19 09:36
 **/
@RestController
@RequestMapping("/contact")
@CrossOrigin
public class ContactController {
    @Autowired
    private IContactService contactService;

    @GetMapping("insertcontact")
    public int insertContact(@RequestParam String contactName,@RequestParam String contactEmail,@RequestParam String contactPhone,@RequestParam String contactTitle,@RequestParam String contactMessage){
        return contactService.addContact(contactName, contactEmail, contactPhone, contactTitle, contactMessage);
    }
}
